package com.cyh.thread.ff1;
public class MyCountDown {  
	
	private int count;  
	
	public MyCountDown(int count){  
		this.count = count;  
	}  
	
	public synchronized void countDown(){  
		count--;  
	}  
	
	public synchronized boolean hasNext(){  
		return (count > 0);  
	}  
	
	public int getCount() {  
		return count;  
	}  
	
	public void setCount(int count) {  
		this.count = count;  
	}  
}